From c1e8e7ba22faf438cddf94aefab8789ca98f9593 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marc-Andr=C3=A9=20Lureau?= Date: Tue, 8 Nov 2011 02:03:38 +0100 Subject: [PATCH] reftests: Add a reftest for background-repeat css property https://bugzilla.gnome.org/show_bug.cgi?id=663522 --- tests/reftests/background-repeat.css | 30 +++++++++ tests/reftests/background-repeat.ref.ui | 83 +++++++++++++++++++++++++ tests/reftests/background-repeat.ui | 69 ++++++++++++++++++++ 3 files changed, 182 insertions(+) create mode 100644 tests/reftests/background-repeat.css create mode 100644 tests/reftests/background-repeat.ref.ui create mode 100644 tests/reftests/background-repeat.ui diff --git a/tests/reftests/background-repeat.css b/tests/reftests/background-repeat.css new file mode 100644 index 0000000000..4b51e1f9b3 --- /dev/null +++ b/tests/reftests/background-repeat.css @@ -0,0 +1,30 @@ +* { + engine: none; + background-image: none; + padding: 0; + border-radius: 0; + border-width: 0; + border-style: none; + border-image: none; + border-image-width: 0; + background-color: rgba(0,0,0,0); +} + +#no-repeat { + background-image: url("border-image-ball-red.png"); + background-repeat: no-repeat; +} + +#repeat { + background-image: url("border-image-ball-green.png"); + background-repeat: repeat; +} + +#default { + background-image: url("green-20x20.png"); +} + +#default-ref { + background-image: none; + background-color: green; +} diff --git a/tests/reftests/background-repeat.ref.ui b/tests/reftests/background-repeat.ref.ui new file mode 100644 index 0000000000..3a8904a107 --- /dev/null +++ b/tests/reftests/background-repeat.ref.ui @@ -0,0 +1,83 @@ + + + + + 50 + 60 + False + + + True + False + + + 50 + 60 + True + False + 0 + 0 + border-image-ball-red.png + + + 0 + 0 + 1 + 1 + + + + + 20 + 60 + True + False + 0 + border-image-3-balls-green.png + + + 1 + 0 + 1 + 1 + + + + + 20 + 60 + True + False + 0 + 0 + border-image-3-balls-green.png + + + 2 + 0 + 1 + 1 + + + + + default-ref + 50 + 60 + True + False + + + + + + 3 + 0 + 1 + 1 + + + + + + diff --git a/tests/reftests/background-repeat.ui b/tests/reftests/background-repeat.ui new file mode 100644 index 0000000000..358187fce4 --- /dev/null +++ b/tests/reftests/background-repeat.ui @@ -0,0 +1,69 @@ + + + + + 50 + 60 + False + + + True + False + + + no-repeat + 50 + 60 + True + False + + + + + + 0 + 0 + 1 + 1 + + + + + repeat + 40 + 60 + True + False + + + + + + 1 + 0 + 1 + 1 + + + + + default + 50 + 60 + True + False + + + + + + 2 + 0 + 1 + 1 + + + + + + -- 2.30.2